package com.yanqu.road.server.cmd.activity.suitang;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.scene.CrossSceneMgr;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C2_SUI_TANG_QUIT_GAME, desc = "退出游戏")
public class CrossSuiTangQuitGameCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        CrossSceneMgr.quitScene(packet.getPlayerId(), System.currentTimeMillis());
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

    }

    @Override
    public void sendData() {

    }
}
